package com.javasm.domin.entity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author whl
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CrmPriceAdjust implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "price_adjust_id", type = IdType.AUTO)
    private Integer priceAdjustId;

    /**
     * 商品编码
     */
    @TableField("goods_Coding")
    private Integer goodsCoding;

    /**
     * 商品库存
     */
    @TableField("goods_Inventory")
    private Integer goodsInventory;

    /**
     * 商品调整前市场价
     */
    @TableField("Now_MarketPrice")
    private Double nowMarketprice;

    /**
     * 商品调整前商城价
     */
    @TableField("Now_MallPrice")
    private Double nowMallprice;

    /**
     * 调价幅度（百分比）
     */
    @TableField("AdjustRange")
    private Double AdjustRange;

    /**
     * 商品调整后市场价
     */
    @TableField("Later_MarketPrice")
    private Double laterMarketprice;

    /**
     * 商品调整后商城价
     */
    @TableField("Later_MallPrice")
    private Double laterMallprice;

    /**
     * 希望价格生效时间
     */
    private LocalDateTime effectTime;

    /**
     * 希望价格失效时间
     */
    private LocalDateTime invalidTime;

    /**
     * 调价原因
     */
    private String priceAdjustReason;

    /**
     * 备注
     */
    private String priceAdjustNote;

    /**
     * 审批单
     */
    @TableField("approvalId")
    private Integer approvalId;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
